package com.auoem.radio;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class MainViewModel extends ViewModel {

    public MutableLiveData<String> mTitle;

    public MainViewModel() {
        mTitle = new MutableLiveData<>();
//        mTitle.setValue("MainTitle");
    }

    public LiveData<String> getText() {
        return mTitle;
    }

    public void updateTitle(String title) {
        mTitle.postValue(title);
    }

}
